#pragma once

#include "../../resource.h"
#include "afxwin.h"


class CKnot;

// KnotTime

class CKnotTime : public CDialog
{
	DECLARE_DYNAMIC(CKnotTime)

public:
	CKnotTime(CWnd* pParent = NULL);
	virtual ~CKnotTime();

	enum { IDD = IDD_OMPONENTTIME };

	virtual BOOL OnInitDialog();
	void SetKnot(CKnot* pKnot) { m_pKnot = pKnot; }
	void SetTree(CTreeCtrl* pTree) { m_pTree = pTree; }

protected:
	virtual void DoDataExchange(CDataExchange* pDX);

	DECLARE_MESSAGE_MAP()
public:

private:
	CKnot* m_pKnot;
	CTreeCtrl* m_pTree;
public:
	afx_msg void OnBnClickedOk();
	CEdit m_TimeValueEdit;
};
